<?php

namespace app\common\validate\Business;

use think\Validate;

class Collection extends Validate
{
    protected $rule = [
        'busid' => ['require'],
        'cateid' => ['require'],
        'proid' => ['require'],
    ];

    // 错误提示信息
    protected $message = [
        'cateid.require' => '文章id必填',
        'busid.require' => '用户id必填',
        'proid.require' => '商品id必填',
    ];
    // 验证场景
    protected $scene = [
        // 用户编辑资料的场景
        'cate' => ['busid','cateid'],
        'pro'  => ['busid','proid'],
    ];
}